<template>
  <div class="transfer-page">
    <div class="transfer-page__main">
      <div class="transfer-page__content">加载中....</div>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { onMounted } from 'vue';
import { useRoute } from 'vue-router';
import { appLoginHandler } from '@appGateway/index';

defineOptions({ name: 'FeishuLoginTransferPage' });

const route = useRoute();
// 登录

onMounted(() => {
  if (route.query?.access_token) appLoginHandler(route.query?.access_token as string);
});

</script>

<style lang="scss" scoped>
.tranfer-page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;

  &__content {
    font-size: 15px;
    color: #333;
  }
}
</style>
